﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Messages;
using XRM.Framework.Test.Integration;

namespace XRM.Solution.FrameworkSample.IntegrationTests.Plugins
{
    [TestClass]
    public class TestPostContactCreate : AsyncPluginIntegrationTest
    {   
        [TestMethod]
        public void TestTaskCreation()
        {
            base.Test();
        }

        protected override void VerifyStatus()
        {
            Assert.AreEqual(Status, AsyncStatus.Pass);
        }

        protected override OrganizationRequest SetupTriggerRequest()
        {
            Entity contact = new Entity("contact");
            contact["lastname"] = DateTime.Now.ToString();
            return new CreateRequest() { Target = contact, };
        }
    }
}
